package gapidt.wsdl;

import org.eclipse.jdt.core.IType;

import com.predic8.schema.Schema;
import com.predic8.wsdl.Definitions;

public abstract class Java2WSDL {
	
	protected Definitions wsdl;
	protected Schema schema;
	protected boolean enclosedSchema;
	
	public Java2WSDL(Definitions wsdl, Schema schema, boolean enclosedSchema){
		this.wsdl = wsdl;
		this.schema = schema;
		this.enclosedSchema = enclosedSchema;
	}
	
	public Definitions getWsdl() {
		return wsdl;
	}

	public void setWsdl(Definitions wsdl) {
		this.wsdl = wsdl;
	}

	public Schema getSchema() {
		return schema;
	}

	public void setSchema(Schema schema) {
		this.schema = schema;
	}
	
	public boolean isEnclosedSchema() {
		return enclosedSchema;
	}

	public void setEnclosedSchema(boolean enclosedSchema) {
		this.enclosedSchema = enclosedSchema;
	}

	public abstract void addTypeService(IType type);

}
